﻿<%@ Page Language="C#" MasterPageFile="~/MasterPages/ModlingMasterPage.master" AutoEventWireup="true"
    CodeBehind="SearchInPatientView.aspx.cs" Inherits="RMS.SearchInPatientView" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PagContent" runat="server">
    <table class="Details" cellspacing="0" cellpadding="0">
        <tr>
            <td colspan="2" class="header">
                Search in patients
            </td>
        </tr>
        <tr>
            <td class="label">
                <asp:Label ID="Label1" runat="server" Text="PationName"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtPationtName" class="autocomplete ui-widget" runat="server" FunctionName="GetPationts" />
            </td>
        </tr>
        <tr>
            <td class="label">
                <asp:Label ID="Label2" runat="server" Text="Pation ID"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtPationID" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <center>
                    <table width="100%">
                        <tr>
                            <td>
                                <asp:Button ID="btnSearch" runat="server" Text="Search" OnClick="btnSearch_Click" />
                            </td>
                            <td>
                                <asp:Button ID="btnCancel" runat="server" Text="Cancel" />
                            </td>
                        </tr>
                    </table>
                </center>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:GridView ID="gvPatients" runat="server" ShowHeader="false" AutoGenerateColumns="false"
                    DataKeyNames="PatientID" OnRowCommand="gvPatients_RowCommand">
                    <Columns>
                        <asp:BoundField DataField="PatientID">
                            <ItemStyle Width="20%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="FirstName">
                            <ItemStyle Width="25%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="FamilyName">
                            <ItemStyle Width="25%" />
                        </asp:BoundField>
                        <asp:ButtonField ButtonType="Link" Text="Edit" CommandName="Edit"></asp:ButtonField>
                        <asp:ButtonField ButtonType="Link" Text="Get Requests" CommandName="GetRequests">
                        </asp:ButtonField>
                        <asp:ButtonField ButtonType="Link" Text="Remove" CausesValidation="false" CommandName="Remove">
                        </asp:ButtonField>
                    </Columns>
                </asp:GridView>
                <cc:DataPager ID="Pager" Visible="false" runat="server" PageIndex="1" TotalRecords="0"
                    RecordsPerPage="10" OnPageIndexChange="Pager_PageIndexChange" />
            </td>
        </tr>
    </table>
</asp:Content>
